﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BrainTechLLC;

namespace UserInterface
{
	public partial class NameInfoEditor : UserControl
	{
		protected NameAndDescription _item;
		public NameAndDescription Item
		{
			get { return _item; }
			set { _item = value; UpdateBindings(); }
		}

		public void UpdateBindings()
		{
			if (_item != null)
			{
				nameAndDescriptionBindingSource.DataSource = _item;
			}
		}

		public NameInfoEditor()
		{
			InitializeComponent();
		}
	}
}
